#!/usr/bin/env bash
xyz() {
	echo "Entering script1's xyz()"
		
}

main() {
	xyz
    echo "Entering script1's main()"
			
}

echo '$BASH_SOURCE:' "${BASH_SOURCE}"
echo '$0:' "$0"
if [[ "${BASH_SOURCE[0]}" == "${0}"  ]]; then
	main 
fi
